package com.bjim.resource;

import java.io.Serializable;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.bjim.sync.SyncUsers;

import cn.dreampie.common.util.Maper;
import cn.dreampie.route.annotation.API;
import cn.dreampie.route.annotation.GET;

@API("sync")
public class SyncResource extends ApiResource {
	
	@GET
	public Map<String, Serializable>	 sync(){
		String  msg=new SyncUsers().sync();
		JSONObject jo=JSONObject.parseObject(msg);
		return Maper.of("msg", "同步成功","resultStr", jo);
	}
}
